﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcWeb.Controllers
{
    public class FormController : BaseController
    {
        // GET: /Form/
        public ActionResult Index(int id = 0, int aid = 0)
        {
            if (id <= 0)
            {
                return new EmptyResult();
            }

            var cList = db.AssetCategory.Where(m => m.CategoryParentID == id).ToList();
            var conList = db.AssetManagerConfig.Where(m => m.AssetID == aid).ToList();
            ViewBag.conList = conList;

            return PartialView(cList);
        }

    }
}
